<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>会员中心</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书中文网">
    <meta name="keywords" content="读书,阅读,小说,文学">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/yds.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/ucenter.css') }}">
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('books.partials.navtop')
@include('books.partials.nav')
<div id="yds_screen">
<div id="yds_content" class="clearfix">
@include('ucenter.partials.umenu')
<div class="spaceList reviewslist">
    <h1>{{$users->user_name}}的书评和读后感<span class="subtitle">共有{{count($booksreviews)}}篇</span></h1>
    @if(count($booksreviews)!=0)
    @foreach($booksreviews as $booksreview)
    <div class="liec">
        <table class="ydstable">
        <tbody>        
            <tr>
                <td class="avatar">
                    <a href="{{url('info')}}/{{$booksreview->books->book_id}}" target="_blank">        
                        <img src="{{url($booksreview->books->bimg)}}" title="{{$booksreview->books->book_name}}"></img>
                    </a>
                </td>
                <td class="update">
                    <div class="title"><a href="{{url('review')}}/{{$booksreview->id}}" title="{{$booksreview->title}}" target="_blank">{{$booksreview->title}}</a></div>
                    <div class="name">
                        <span>评论<a href="{{url('info')}}/{{$booksreview->books->book_id}}" target="_blank">《{{$booksreview->books->book_name}}》</a></span>
                        <span class="rating allstar{{$booksreview->rating}}0"></span>
                        <span>{{date('Y-m-d H:i',$booksreview->add_time)}}</span>
                    </div>
                    <div class="zhaiyao">{{mb_substr(strip_tags($booksreview->bookreview),0,160)}}...... <a href="{{url('review')}}/{{$booksreview->id}}" target="_blank">(阅读全文...)</a></div>
                </td>
            </tr>        
        </tbody>
        </table>
    </div>
    @endforeach
    @else
        <div class="nodata">还没有发表书评和读后感</div>
    @endif
</div>
</div>
</div>
@include('books.partials.footer')
</body>
</html>
